package com.climb.spingcloud.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Administrator-NANA
 * @date 2021-07-28 16:40:07
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "Product 对象")
public class ProductDto implements Serializable {
    private  static final long serialVersionUID=1L;
    @Schema(description = "商品id")
    private Long id;
    @Schema(description = "商品名称")
    private String name;
    @Schema(description = "商品价格")
    private BigDecimal price;
    @Schema(description = "商品库存")
    private  Integer stock;
//    @Schema(description = "删除标识")
//    private Boolean deleted;
}
